import { EConfigItemPropsType, EDoneJsonType, IConfigItem } from '@/config-center/types';

export const terminal_svg_aircond: IConfigItem = {
  name: 'terminal-svg-aircond',
  title: '空调',
  tag: 'terminal-svg-aircond',
  type: EDoneJsonType.CustomSvg,
  display: true,
  config: {
    can_zoom: true,
    have_anchor: false,
    actual_rect: true
  },
  props: {
    text: {
      title: '空调名称',
      type: EConfigItemPropsType.Input,
      val: '2-1-22'
    },
    aircondType: {
      title: '空调类型',
      type: EConfigItemPropsType.Select,
      val: 2,
      options: [
        {
          value: 0,
          label: '无'
        },
        {
          value: 1,
          label: '下出风'
        },
        {
          value: 2,
          label: '上出风'
        }
      ]
    },
    status: {
      title: '开关状态',
      type: EConfigItemPropsType.Select,
      val: 0,
      options: [
        {
          value: 0,
          label: '关'
        },
        {
          value: 1,
          label: '开'
        }
      ]
    },
    fontSize: {
      title: '名称文字大小',
      type: EConfigItemPropsType.InputNumber,
      val: 14
    },
    fill: {
      title: '名称颜色',
      type: EConfigItemPropsType.Color,
      val: 'rgba(13, 152, 216, 1)'
    },
    setTem: {
      title: '设置温度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    setHum: {
      title: '设置湿度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    outTem: {
      title: '出风温度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    outHum: {
      title: '出风湿度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    inTem: {
      title: '进风温度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    inHum: {
      title: '进风湿度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    }
  },
  common_animations: {
    val: '',
    delay: 'delay-0s',
    speed: 'slow',
    repeat: 'infinite'
  }
};
export const terminal_svg_icetag: IConfigItem = {
  name: 'terminal-svg-icetag',
  title: '空调',
  event: 1,
  tag: 'terminal-svg-icetag',
  type: EDoneJsonType.CustomSvg,
  display: true,
  config: {
    can_zoom: true,
    have_anchor: false,
    actual_rect: true
  },
  props: {
    text: {
      title: '空调名称',
      type: EConfigItemPropsType.Input,
      val: '2-1-22'
    },
    state: {
      title: '开关状态',
      type: EConfigItemPropsType.Select,
      val: '--',
      options: [
        {
          value: 0,
          label: '关'
        },
        {
          value: 1,
          label: '开'
        },
        {
          value: -1,
          label: '--'
        }
      ]
    },
    fontSize: {
      title: '名称文字大小',
      type: EConfigItemPropsType.InputNumber,
      val: 14
    },
    fill: {
      title: '文字颜色',
      type: EConfigItemPropsType.Color,
      val: 'rgba(200, 222, 254, 1)'
    },
    bgFill: {
      title: '背景颜色',
      type: EConfigItemPropsType.Color,
      val: 'rgba(0,44,86,0.8)'
    }
  },
  common_animations: {
    val: '',
    delay: 'delay-0s',
    speed: 'slow',
    repeat: 'infinite',
    cursor: true
  }
};
